<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广东工业大学招生办后台管理</title>
<link href="${ctx }/css/print.css" rel="stylesheet" media="screen">
<script charset="utf-8" src="${ctx }/js/jquery.js"></script>
<script charset="utf-8" src="${ctx }/js/jquery.jqprint.js"></script>
<script type="text/javascript" src="${ctx }/My97DatePicker/WdatePicker.js"></script> 
<script>
	$(document).ready(function(){		
		var fullYear = new Date();
		$(".year").html(fullYear.getFullYear());		
	});
</script>
<script type="text/javascript">
	function check(){
		var number = document.getElementById("number");
		var time = document.getElementById("time");
		var submit = document.getElementById("submit");
		var n = /^[0-9]{2}[1][1][8][4][5][0-9]{5}$/;
		var t = /^[0-3][0-9]{3}\-[0-1][0-9]\-[0-3][0-9]\ [0-2][0-9]\:[0-5][0-9]$/;
		if(number.value == ""){
			alert("请输入报名编号！");
			return false;
		}
		
		else if(!(n.test(number.value))){
			alert("请按格式输入报名编号！");
			return false;
		}
		
		else if(time.value == ""){
			alert("请输入测试时间！");
			return false;
		}
		
	/* 	else if(!(t.test(time.value))){
			alert("请按格式输入测试时间！");
			return false;
		} */
		submit.disabled = "true";
		return true;
	}
</script>

  </head>
  
  <body>
	<form action="examinee-admin!save.action" method="post" onsubmit="return check()">
		<input type="hidden" name="id" value="${examinee.id }"/>
	  <fieldset>
		<legend>请输入</legend>
		<table>
			<tr>
				<td>报名编号:</td>
				<td><input type="text" name="registerNumber" class="input" id="number" /></td>
				<td class="tip">两位数年份+11845+两位数项目代码+三位数流水号</td>
			</tr>
			<tr>
				<td>测试时间:</td>
				<td><!-- <input type="text" name="testTime" class="input" id="time" /> -->
					<input class="Wdate" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" id="Wdate" name="testTime" />
				</td>
				<td class="tip">请按照如下时间格式输入  2013-09-01 14:30:00</td>
			</tr>
			<tr class="submitTD">
				<td></td>
				<td><input id="submit" type="submit" value="确定" />
				&nbsp;
				<input type="reset" value="重置" /></td>
				<td></td>
			</tr>
		</table>
	  </fieldset>
	</form>
		<div class="ticket">
			<div class="ticketTable">
				<div class="ticketHead">
					<h2>广东工业大学<span class="year"></span>年高水平运动员招生专项测试</h2>
					<h2>准考证</h2>
					<h2>(${examinee.item })</h2>
				</div>
				<span>报名编号（学校填写）： ${examinee.registerNumber }</span>
				<table>
					<tr>
						<th style="width:100px">姓名</th>
						<td style="width:200px">${examinee.name }</td>
						<th style="width:100px">性别</th>
						<td style="width:100px">${examinee.gender }</td>
						<th style="width:100px">生源省份</th>
						<td style="width:160px">${examinee.province }</td>
						<td style="width:143px" rowspan="3"><img src="${ctx }/upload/${examinee.photoUrl}" class="img"/></td>
					</tr>
					<tr>
						<th colspan="2">高考准考证号</th>
						<td colspan="4">${examinee.ticket }</td>
					</tr>
					<tr>
						<th colspan="2">测试时间</th>
						<td colspan="4">${examinee.testTime }</td>
					</tr>
				</table>
				<span>备注：本证加盖广东工业大学招生办印章方为有效</span>
			</div>
			<%-- <div class="CandidateRules">
				<h3>考生须知</h3>
				<ol>
					<s:iterator value="contents">
					<!-- 
					<li>测试地点：广东工业大学大学城校园体育场馆；</li>
					<li>考生持准考证和身份证方可进入考场；</li>
					<li>考生应在考试前一天到考试地点了解考场位置、考试时间等注意事项；</li>
					<li>考试期间不得提前离场</li>
					<li>测试成绩将于3月中旬在我校招办网页（http://zsb.gdut.edu.cn）公布，咨询电话：020—39322681。测试成绩将于3月中旬在我校招办网页（http://zsb.gdut.edu.cn）公布，咨询电话：020—39322681。</li>
					 -->
					 <li>${content }</li>
					</s:iterator>
				</ol>
			</div> --%>
		</div>
  </body>
</html>
